<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-lr-10">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th align="center" colspan="4" style="font-weight:bolder;">眼技大考验游戏《用户数据》统计</th>
		</tr>
	</thead>
<tbody>
<tr>
	<th align="center" colspan="4"></th>
</tr>
	<tr>
		<th align="center" colspan="2">用户数量统计</th>
		<th align="center" colspan="2">闯关数量统计</th>
	</tr>
    <tr>
		<td align="right" width=200>
		  今日用户数：
		</td>
		<td align="left">
		  <?php echo $today_user_num?'<b>'.$today_user_num.'&nbsp;</b>个':'<span style="color:red;">暂无数据</span>';?>
		</td>
		<td align="right" width=200>
		  今日闯关数：
		</td>
		<td align="left">
		  <?php echo $today_play_num?'<b>'.$today_play_num.'</b>&nbsp;关':'<span style="color:red;">暂无数据</span>';?>
		</td>
    </tr>
    <tr>
		<td align="right" width=200>
		  昨日用户数：
		</td>
		<td align="left">
		  <?php echo $yesterday_user_num?'<b>'.$yesterday_user_num.'</b>&nbsp;个':'<span style="color:red;">暂无数据</span>';?>
		</td>
		<td align="right" width=200>
		  昨日闯关数：
		</td>
		<td align="left">
		  <?php echo $yesterday_play_num?'<b>'.$yesterday_play_num.'</b>&nbsp;关</b>':'<span style="color:red;">暂无数据</span>';?>
		</td>
    </tr>
    <tr>
		<td align="right" width=200>
		  过去一周用户数：
		</td>
		<td align="left">
		  <?php echo $last_week_user_num?'<b>'.$last_week_user_num.'</b>&nbsp;个':'<span style="color:red;">暂无数据</span>';?>
		</td>
		<td align="right" width=200>
		  过去一周闯关数：
		</td>
		<td align="left">
		  <?php echo $last_week_play_num?'<b>'.$last_week_play_num.'</b>&nbsp;关':'<span style="color:red;">暂无数据</span>';?>
		</td>
    </tr>
    <tr>
		<td align="right" width=200>
		  过去一月用户数：
		</td>
		<td align="left">
		  <?php echo $last_month_user_num?'<b>'.$last_month_user_num.'</b>&nbsp;个':'<span style="color:red;">暂无数据,请联系管理员！</span>';?>
		</td>
		<td align="right" width=200>
		  过去一月闯关数：
		</td>
		<td align="left">
		  <?php echo $last_month_play_num?'<b>'.$last_month_play_num.'</b>&nbsp;关':'<span style="color:red;">暂无数据,请联系管理员！</span>';?>
		</td>
    </tr>
    <tr>
		<td align="right" width=200>
		  全部用户数：
		</td>
		<td align="left">
		  <?php echo $all_user_num?'<b>'.$all_user_num.'</b>&nbsp;个':'<span style="color:red;">暂无数据,请联系管理员！</span>';?>
		</td>
		<td align="right" width=200>
		  全部闯关数：
		</td>
		<td align="left">
		  <?php echo $all_play_num?'<b>'.$all_play_num.'</b>&nbsp;关':'<span style="color:red;">暂无数据,请联系管理员！</span>';?>
		</td>
    </tr>
</tbody>
<tr>
	<th align="center" colspan="4">眼技大考验游戏《闯关数据》统计</th>
</tr>
<tr>
	<th align="center" colspan="4"></th>
</tr>
<?php $pass_result = unserialize($pass_result); if(!empty($pass_result)){foreach ($pass_result as $key=>$value){?>
<tr>
    <td colspan="4" align="center">第&nbsp;<span style="color:red;font-weight:bolder;font-size:15px;"><?php echo $key+1;?></span>&nbsp;关：<span style="color:red;font-weight:bolder;">全部闯关次数</span>：<b><?php echo $value['all_pass_nums']?$value['all_pass_nums']:'暂无数据，请联系管理员！';?></b>&nbsp;&nbsp;&nbsp;<span style="color:#33CC33;font-weight:bolder;">通关次数</span>：<b><?php echo $value['pass_nums']?$value['pass_nums']:'暂无数据，请联系管理员！';?></b>&nbsp;&nbsp;&nbsp;<span style="color:#0099FF;font-weight:bolder;">成功率</span>：<b><?php echo $value['pass_rate']?$value['pass_rate']:'暂无数据，请联系管理员！';?>%</b></td>
</tr>
<?php }}else{
    echo "<tr><td style='font-weight:bolder;color:red;' colspan='4'align='center'>暂无统计信息，请联系管理员！</td></tr>";
}?>
</table>
</div>
</div>
</body>
</html>